using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.DBModel
{
	public partial class Sys_RoleMenu : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _MenuId;
		/// <summary>
		/// MenuId
		/// </summary>
		[Entity(ColumnName = CNMenuId, IsNotNull = true)]
		public System.String MenuId
		{
			get { return _MenuId; }
			set
			{
				_MenuId = value;
				base.SetFieldChanged(CNMenuId) ;
			}
		}

		private System.Int32 _MenuOrder;
		/// <summary>
		/// MenuOrder
		/// </summary>
		[Entity(ColumnName = CNMenuOrder, IsNotNull = true)]
		public System.Int32 MenuOrder
		{
			get { return _MenuOrder; }
			set
			{
				_MenuOrder = value;
				base.SetFieldChanged(CNMenuOrder) ;
			}
		}

		private System.Boolean _MenuExpand;
		/// <summary>
		/// MenuExpand
		/// </summary>
		[Entity(ColumnName = CNMenuExpand, IsNotNull = true)]
		public System.Boolean MenuExpand
		{
			get { return _MenuExpand; }
			set
			{
				_MenuExpand = value;
				base.SetFieldChanged(CNMenuExpand) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNRoleId = "RoleId";
		public const string CNMenuId = "MenuId";
		public const string CNMenuOrder = "MenuOrder";
		public const string CNMenuExpand = "MenuExpand";
		#endregion

	}
}
